package com.liner.homework.first.person;

public class Doctor extends Person {
    String title;

    public Doctor(String name, int age, String address, String title) {
        super(name, age, address);
        this.title = title;
    }

    @Override
    public void sayHi() {
        super.sayHi();
        System.out.println("我的职位是:" + title);
    }

    public void cut() {
        System.out.println(name + "正在做手术...");
    }
}
